#include "head.h"
#include "ui_head.h"

Head::Head(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Head)
{
    ui->setupUi(this);

    connect(ui->btnCloss, &QPushButton::clicked, this, [=](){
        emit closesignal();
    });

    connect(ui->btnMax, &QPushButton::clicked, this, [=](){
        emit maxsignal();
    });

    connect(ui->btnMin, &QPushButton::clicked, this, [=](){
        emit minsignal();
    });
}

Head::~Head()
{
    delete ui;
}
